﻿using Stu_sys.Entity;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;
using System.Text.Json.Serialization;

namespace Stu_sys.Models
{
    public class UserViewModel
    {
        [Display(Name = "用户id")]
        public int UserId { get; set; }

        [Display(Name = "账号")]
        public string? UserName { get; set; }

        [Display(Name = "密码")]
        public string? Password { get; set; }

        [Display(Name = "角色id")]
        public int RoleId { get; set; }

        [Display(Name = "角色名")]
        public string? RoleName { get; set; }

        [Display(Name = "真实姓名")]
        public string? RealName { get; set; }

        [Display(Name = "电话")]
        public string? Phone { get; set; }

        [Display(Name = "QQ")]
        public string? QQ { get; set; }

        [Display(Name = "科目id")]
        public int SubjectId { get; set; }

        [Display(Name = "科目名称")]
        public string? SubjectName { get; set; }

        [Display(Name = "部门id")]
        public int DepartmentId { get; set; }
        [Display(Name ="部门名称")]
        public string? DepartmentName { get; set; }
        [Display(Name ="办公室id")]
        public int OfficeRoomId { get; set; }
        [Display(Name = "办公室")]
        public string? OfficRoomName { get;set; }

        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }

        [Display(Name = "修改时间")]
        public DateTime UpdateTime { get; set; }
    }
}
